package com.jungle.mvvm.sample.api;

import com.jungle.mvvm.sample.bean.ArticleBean;
import com.jungle.mvvm.sample.bean.BannerBean;
import com.jungle.mvvm.sample.bean.CoinBean;
import com.jungle.mvvm.sample.bean.FriendBean;
import com.jungle.mvvm.sample.bean.ListBean;
import com.jungle.mvvm.sample.bean.SameBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * @ClassName OtherApi
 * @Description 其他接口
 * @Author Daniel
 * @Version V1.0.0
 */
public interface OtherApi {

    @GET("banner/json")
    Observable<SameBean<List<BannerBean>>> getBannerList();

    @GET("article/list/{size}/json")
    Observable<ListBean<List<ArticleBean>>> getHomeArticle(@Path("size") int size);

    @GET("friend/json")
    Observable<SameBean<List<FriendBean>>> getFriendList();

    @GET("coin/rank/{size}/json")
    Observable<ListBean<List<CoinBean>>> getCoinList(@Path("size") int size);
}